﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;
using System.Globalization;
using System.Web;

namespace BMS.Models
{
    public class CompanyModel
    {
        public int CompanyID { get; set; }
        [Required]
        [StringLength(500, ErrorMessage = "The {0} must be between 1 - 500 characters long.", MinimumLength = 1)]
        [Display(Name = "Company name")]
        public string CompanyName { get; set; }
        [Display(Name = "Address 1")]
        [StringLength(250, ErrorMessage = "The {0} must be between 1 - 250 characters long.", MinimumLength = 1)]
        public string Address1 { get; set; }
        [Display(Name = "Address 2")]
        [StringLength(250, ErrorMessage = "The {0} must be between 1 - 250 characters long.", MinimumLength = 1)]
        public string Address2 { get; set; }
        [Display(Name = "Address 3")]
        [StringLength(250, ErrorMessage = "The {0} must be between 1 - 250 characters long.", MinimumLength = 1)]
        public string Address3 { get; set; }
        [Display(Name = "Address 4")]
        [StringLength(250, ErrorMessage = "The {0} must be between 1 - 250 characters long.", MinimumLength = 1)]
        public string Address4 { get; set; }
        [Display(Name = "Address 5")]
        [StringLength(250, ErrorMessage = "The {0} must be between 1 - 250 characters long.", MinimumLength = 1)]
        public string Address5 { get; set; }
        [Display(Name = "Telephone No")]
        public string TelephoneNo { get; set; }
        [Display(Name = "Fax No")]
        public string FaxNo { get; set; }
    }
}